<tagLib name="html" />
<include file="../Public/header" />
<div id="wrap"> <include file="../Public/top" />
  <div id="content">
    <div class="mainarea">
      <div class="maininner">
        <div class="bdrcontent">
          <form action="__URL__/update" method="post" enctype="multipart/form-data" class="formtable" id="phpform" onsubmit="return $.formValidator.pageIsValid('1')">
            <input type="hidden" name="id" value="{$vo.id}" />
            <input type="hidden" value="{.nid}"  name="nid" />
            <table width="100%" cellpadding="0" cellspacing="0" class="formtable">
			  <tr>
                <td width="200">name：</td>
                <td><input name="name" type="text" style="width:260px;" id="name"  value="{$vo.name}" /></td>
              </tr>
			  <tr>
                <td>url：</td>
                <td><input name="url" type="text" style="width:260px;" id="url" value="{$vo.url}"/></td>
              </tr>
              <present name="vo['imgUrl']">
			  <tr>
			    <td>预览图片：</td>
			    <td><img src="__ROOT__/{$vo.imgUrl}" border="0" /></td>
		      </tr>
              </present>
			  <tr>
                <td><label for="fileField">上传友情链接LOGO</label>：</td>
                <td>
                <input type="file" name="file1" id="file1" />(<SPAN STYLE="color:red;">没有进行尺寸缩放，左侧（147×47），右侧（88×120）</SPAN>)</td>
              </tr>
			  <tr>
                <td>orderNum：</td>
                <td><input name="orderNum" type="text" id="orderNum" style="width:60px;" value="{$vo.orderNum}" /></td>
              </tr>
              
              <tr>
                <td>&nbsp;</td>
                <td><input type="submit" value="提交" class="submit" />
                  <input name="reset" type="reset" value="重置" class="submit" />
                  <input name="button" type="button" value="返回" onclick="javascript:history.go(-1);"  class="submit" /></td>
              </tr>
            </table>
          </form>
        </div>
        <br />
      </div>
    </div>
    <include file="../Public/menu" /> </div>
  <include file="../Public/footer" /> </div>
</body>
</html>

<script type="text/javascript">
	
	$.formValidator.initConfig({autotip:true,onerror:function(msg){alert(msg)}});
	//$("#id").formValidator({onshow:"请输入id",onfocus:"id至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的id长度不正确,请确认"});
	$("#name").formValidator({onshow:"请输入友情链接名",onfocus:"友情链接名至少要输入2个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:4,onerror:"你输入的友情链接名长度不正确,请确认"});
	$("#url").formValidator({onshow:"请输入url",onfocus:"url至少要输入5个字符",oncorrect:"恭喜你,你输对了"}).inputValidator({min:5,onerror:"你输入的url长度不正确,请确认"});
	//$("#imgUrl").formValidator({onshow:"请输入imgUrl",onfocus:"imgUrl至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的imgUrl长度不正确,请确认"});
	$("#orderNum").formValidator({onshow:"请输入排序编号",onfocus:"排序编号要输入1-99之间",oncorrect:"恭喜你,你输对了"}).inputValidator({min:1,max:99,type:"value",onerror:"你输入的orderNum长度或类型不正确,请确认"});
	//$("#cTime").formValidator({onshow:"请输入cTime",onfocus:"cTime至少要输入5个汉字",oncorrect:"恭喜你,你输对了"}).inputValidator({min:10,onerror:"你输入的cTime长度不正确,请确认"});
	
</script>